home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16722 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.nyu.edu!schonberg!dewar
  2. From: dewar@cs.nyu.edu (Robert Dewar)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. Date: 11 Apr 1996 22:34:46 -0400
  6. Organization: Courant Institute of Mathematical Sciences
  7. Message-ID: <dewar.829276268@schonberg>
  8. References: <4kk9e1$he1@nntp.Stanford.EDU>
  9. NNTP-Posting-Host: schonberg.cs.nyu.edu
  10. X-Newsreader: NN version 6.5.0 (NOV)
  11.  
  12. Chuck said
  13.  
  14. "There are a lot of things that are intentionally not spelled
  15. out by standards.  Sometimes this is because the standard
  16. writers want to limit the scope of the document to keep it
  17. legible and usable, and sometimes it's because they don't want
  18. to preclude implementors from offering usable products
  19. based on current technology or from adding capabilities and
  20. value to future products."
  21.  
  22. This is a sorry excuse for an obvious oversight if you ask me. All that
  23. is needed for read is one of the following two sentences:
  24.  
  25. The buffer must be long enough to accomodate the data actually read
  26.  
  27. or
  28.  
  29.  
  30. The buffer must be at least the length corresponding to the value of
  31. the count parameter.
  32.  
  33. I don't really care which is chosen, I prefer the second but could 
  34. certainly live with the first, but I do NOT find it acceptable to
  35. leave this unstated. This kind of carelessness in specification
  36. which seems endemic in the C runtime library, is bound to lead
  37. to misunderstandings and portability problems. No one is asking
  38. for over-specification, or for exhaustive and exhausting formality,
  39. just for a clear informal statement of what is intended!
  40.  
  41.